<?php
namespace App\Models\Entity\bqhot;

use Swoft\Db\Model;
use Swoft\Db\Bean\Annotation\Column;
use Swoft\Db\Bean\Annotation\Entity;
use Swoft\Db\Bean\Annotation\Id;
use Swoft\Db\Bean\Annotation\Required;
use Swoft\Db\Bean\Annotation\Table;
use Swoft\Db\Types;

/**
 * @Entity(instance="bqhot.master")
 * @Table(name="bqhot_tuku")
 * @uses      Tuku
 */
class Tuku extends Model
{
    /**
     * @var int $id 
     * @Id()
     * @Column(name="id", type="integer")
     */
    private $id;

    /**
     * @var string $imgurl 
     * @Column(name="imgurl", type="string", length=255)
     * @Required()
     */
    private $imgurl;

    /**
     * @var int $tid 
     * @Column(name="tid", type="integer", default=0)
     */
    private $tid;

    /**
     * @var string $bqurl 
     * @Column(name="bqurl", type="string", length=255, default="")
     */
    private $bqurl;

    /**
     * @var int $time 
     * @Column(name="time", type="integer", default=0)
     */
    private $time;

    /**
     * @var string $hash 
     * @Column(name="hash", type="string", length=48)
     */
    private $hash;

    /**
     * @var string $geturl 所在链接
     * @Column(name="geturl", type="string", length=255)
     * @Required()
     */
    private $geturl;

    /**
     * @param int $value
     * @return $this
     */
    public function setId(int $value)
    {
        $this->id = $value;

        return $this;
    }

    /**
     * @param string $value
     * @return $this
     */
    public function setImgurl(string $value): self
    {
        $this->imgurl = $value;

        return $this;
    }

    /**
     * @param int $value
     * @return $this
     */
    public function setTid(int $value): self
    {
        $this->tid = $value;

        return $this;
    }

    /**
     * @param string $value
     * @return $this
     */
    public function setBqurl(string $value): self
    {
        $this->bqurl = $value;

        return $this;
    }

    /**
     * @param int $value
     * @return $this
     */
    public function setTime(int $value): self
    {
        $this->time = $value;

        return $this;
    }

    /**
     * @param string $value
     * @return $this
     */
    public function setHash(string $value): self
    {
        $this->hash = $value;

        return $this;
    }

    /**
     * 所在链接
     * @param string $value
     * @return $this
     */
    public function setGeturl(string $value): self
    {
        $this->geturl = $value;

        return $this;
    }

    /**
     * @return mixed
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * @return string
     */
    public function getImgurl()
    {
        return $this->imgurl;
    }

    /**
     * @return int
     */
    public function getTid()
    {
        return $this->tid;
    }

    /**
     * @return string
     */
    public function getBqurl()
    {
        return $this->bqurl;
    }

    /**
     * @return int
     */
    public function getTime()
    {
        return $this->time;
    }

    /**
     * @return string
     */
    public function getHash()
    {
        return $this->hash;
    }

    /**
     * 所在链接
     * @return string
     */
    public function getGeturl()
    {
        return $this->geturl;
    }

}
